package com.mark.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * Created by Choisaaaa on 2018/6/21.
 * 订单详情实体类
 */
@Entity
@Data
public class OrderDetail {

    @Id
    private String detailId;            //订单详情ID
    private String orderId;             //所属的订单ID
    private String productId;           //商品ID
    private String productName;         //商品名称
    private BigDecimal productPrice;    //商品价格【不能使用前端的值】
    private Integer productQuantity;    //商品数量
    private String productIcon;         //商品小图

}
